package com.stylefeng.guns.modular.system.warpper;

import com.stylefeng.guns.common.constant.factory.ConstantFactory;
import com.stylefeng.guns.common.warpper.BaseControllerWarpper;

import java.util.List;
import java.util.Map;

/**
 * 广告滚动条管理的包装类
 *
 * @author fengshuonan
 * @date 2017年2月13日 下午10:47:03
 */
public class AdvertisementWarpper extends BaseControllerWarpper {

    public AdvertisementWarpper(List<Map<String, Object>> list) {
        super(list);
    }

    @Override
    public void warpTheMap(Map<String, Object> map) {
        String state_name = "";
        if((Integer) map.get("state")==0){
            state_name = "启用";
        }else if((Integer) map.get("state")==1){
            state_name = "禁用";
        }
        map.put("state_name", state_name);
    }

}
